import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

import Home from "@/views/home/index.vue";
import About from "@/views/about/index.vue";
import Archive from "@/views/archive/index.vue";

const routes:RouteRecordRaw[] = [
  {
    path: "/",
    name: "home",
    component: Home,
  },
  {
    path: "/archive",
    name: "archive",
    component: Archive,
  },
  {
    path: "/about",
    name: "about",
    component: About,
  },
];

const route = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default route;
